Release 10.1A: OpenEdge Development:
Progress 4GL Handbook
PREPARE-STRING attribute
Once you have prepared a query, you can verify what its current
FOR EACHstatement is using thePREPARE-STRINGattribute, which returns the effect of the most recentQUERY-PREPAREmethod, as in this example:
Figure 19–4 shows the result.
Figure 19–4: PREPARE-STRING message
![]()
The
PREPARE-STRINGattribute applies only to dynamic queries. It does not return theFOR EACHstatement used in anOPEN QUERYstatement for a static query. The example in the "Using the SELF handle to identify an object in a trigger" section uses this attribute to save off the currentFOR EACHstatement for a query to restore it if the user’s attempt to replace it with a different one fails.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |